    _pl = 'http://www.phim85.com/player.swf';
    _pr = 'http://www.phim85.com/plugins/proxy.swf';
    _sk = 'http://hdonline.vn/player/hdonline/hdonline.xml';       
    _plphimvang='http://phimvang.org/player/player.swf';
    _prphimvang='http://phimvang.org/player/plugins/proxy.swf';
    _skphimvang='http://phimvang.org/player/plugins/skin_full.swf';
    _listphimvang='http://phimvang.org/player/plugins/ListBox.swf';
    _logophimvang='http://phimvang.org/img/logo-trans.png';

function reverse(s){
    return s.split("").reverse().join("");
}
function link(s){
    return s.split("").reverse().join("");
}
function encryptReverse() {
    document.getElementById("resulttext").innerHTML = "Kết quả Reverse Text:";
    document.helloximoReverse.T2Reverse.value = reverse(document.helloximoReverse.T1Reverse.value);
    return !1
}


function closeMyAd() {
    document['getElementById']('divs')['style']['display'] = 'none'
};
var $_ = function (a) {
    return document['getElementById'](a)
};
String['prototype']['GetPart'] = function (a) {
    var b = new RegExp('(^|&)' + a + '=([^&]*)(&|$)');
    var c = this['substr'](this['indexOf']('?') + 1)['match'](b);
    if (c != null) {
        return unescape(c[2])
    };
    return null
};
function ANCMedia() {
    _lg = szk['id']['logo'];
    dl = szk['id']['link'];
    pl = szk['id']['player'];
    tp = szk['id']['sv'];
    playing = szk['id']['dx'];
    home = szk['id']['home'];
    function _0x3792x8() {
        m_data = $_(dl)['innerHTML'];
        r_left = '<div id="r_data" style="display:none !important;" title="Data here !">';
        r_right = '</div>';
        m_data = m_data['replace'](/\<id\>/gi, r_left);
        m_data = m_data['replace'](/\<\/id\>/gi, r_right);
        m_data = m_data['replace'](/\[id\]/gi, r_left);
        m_data = m_data['replace'](/\[\/id\]/gi, r_right);
        $_(dl)['innerHTML'] = m_data;
        m_data = $_('r_data')['innerHTML'];
        return m_data
    };
    data = _0x3792x8();
    l_spi = data['split']('|')['length'];
    l_spk = function (a) {
        return data['split']('|')[a]['split'](';')['length']
    };
    d_spi = function (a) {
        return data['split']('|')[a]
    };
    d_spk = function (a, b) {
        return data['split']('|')[a]['split'](';')[b]
    };
    part = new Array();
    pc = ['0', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S'];
    ab = '';
    part_ep = '';
    data_out = '';
svl='xemphim18hot.com,youtube.com,picasaweb.google.com,xvideos.com,flashx.tv,divxstage.eu';
svt='Xemphim18hot,VIP1,VIP2,VIP3,VIP4,VIP5';
    sv = svl['split'](',');
    ten_sv = svt['split'](',');
    this['Play'] = function () {
        for (var a = 0; a < ten_sv['length']; a++) {
            var b = ten_sv[a]['split']('.')[0];
            if (b == '') {
                b = home
            };
            part[a] = '<li class="sev">+Server ' + b + ':</li>'
        };
        for (var c = 0; c < l_spi; c++) {
            name_ep = d_spk(c, 0);
            for (var d = 0; d < l_spk(c); d++) {
                link_ep = d_spk(c, d);
                number_ep = Number(d_spk(c, 0));
                number_epp = '';
                if (c > 0) {
                    number_epp = Number(d_spk((c - 1), 0))
                };
                if (l_spk(c) == 2) {
                    ab = '';
                    part_ep = ''
                } else {
                    ab = pc[d];
                    part_ep = '-' + d
                };
                (number_ep) ? name_eppart = name_ep + ab : name_eppart = name_ep + part_ep;
                if (d_spk(c, d) != '') {
                    for (var a = 0; a < sv['length']; a++) {
                        (d_spk(c, d)['indexOf'](sv[a]) != -1) ? part[a] += '<li onclick="M.Load(\'' + link_ep + '\',\'' + name_eppart + '\');" class="ep"><a class="a_tap" rel="' + home + ':' + name_eppart + '" title="' + name_eppart + '" href="?p=' + 36+'-'+ c + '-' + d + '-' + name_eppart['replace'](/ /gi, '_') + '">&nbsp;' + name_eppart + '&nbsp;</a></li><!--ANCMedia Part-->' : false
                    }
                }
            }
        };
        data_out += '<div id="list_tap">';
        if (l_spi >= 2) {
            for (var a = 0; a < sv['length']; a++) {
                (part[a]['indexOf']('ANCMedia') != -1) ? data_out += '<ul id=\'' + a + '\'>' + part[a] + '<div style=\'clear:both;\' ></div></ul>' : false
            }
        } else {
            data_out += '<ul><li class="sev">+Server Home:</li>' + '<li class="ep"><a class="a_tap" rel="' + home + ': Xem Full" title="Xem Full" href="javascript:M.Load(\'' + data + '\',\'Full_time\');">Xem Full</a></li></ul>'
        };
        data_out += '<div class="clear" /></div>';
        $_(tp)['innerHTML'] = data_out
    };
    this['Load'] = function (a, b) {
        obj = '';
        name_ep = '';
        if (a['indexOf'](sv[0]) != -1) {
            a = a['replace'](/\/watch\?v=/gi, '/v/');
            a = a['replace'](/\&feature=related/gi, '');
            obj = DBOj(a)[3]
        };
        if (a['indexOf'](sv[1]) != -1) {
            a = a['replace'](/anc\.yl/gi, 'http://www.youtube.com/p/');
            obj = DBOj(a)[3]
        };
        if (a['indexOf'](sv[2]) != -1) {
            a = a['replace'](/anc\.mp4/gi, 'http:');
            obj = DBOj(a)[0]
        };
        if (a['indexOf'](sv[3]) != -1) {
            a = a['replace'](/anc\.flv/gi, 'http:');
            obj = DBOj(a)[0]
        };
        if (a['indexOf'](sv[4]) != -1) {
            a = a['replace'](/megafun\.vn/gi, '');
            obj = DBOj(a)[1]
        };
        if (a['indexOf'](sv[5]) != -1) {
            a = a['replace'](/\.html/gi, '.xml');
            obj = DBOj(a)[2]
        };
        for (var c = 6; c < sv['length']; c++) {
            if (a['indexOf'](sv[c]) != -1) {
                obj = DBOj(a)[0]
            }
        };
        if (Number(b)) {
            name_ep = '<span>&nbsp;&nbsp;\u0110ang xem:</span> ' + b + ''
        } else {
            if (b['length'] >= 5) {
                name_ep = '<span>&nbsp;&nbsp;\u0110ang xem:</span> ' + b + ''
            } else {
                if (!Number(b) && b['length'] < 5) {
                    name_ep = '<span>&nbsp;&nbsp;\u0110ang xem:</span> ' + b + ''
                }
            }
        };
        $_(pl)['innerHTML'] = obj;
        $_(playing)['innerHTML'] = name_ep
    };
    this['Qstr'] = function () {
        str = window['location']['href'];
        part = str.GetPart('p');
        (part == null) ? part = '0/1/' + d_spk(0, 0) + '' : false;
        a = part['split']('/')[0];
        b = part['split']('/')[1];
        c = decodeURI(part['split']('/')[2]);
        (l_spi >= 2) ? this.Load(d_spk(a, b), c) : this.Load(data, 'Full_time')
    }
};
var DBOj = function (a) {                        
    _em = 'type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" autostart="true" wmode="transparent"  width="100%" height="100%"'; /** wmode="transparent" **/
    _bb = '<div onclick="closeMyAd()" style="position:absolute;top:auto;left:auto;width:470px;height:70px;margin:-143px 0 0 100px; overflow:hidden;font:bold 13px Tahoma; line-height:0.5em;" id="divs">    <a style="color:#FFCC00;float:right;line-height:0.7em;" href="javascript:void(0)" onclick="closeMyAd()">Close [X] </a>   <br/>  <center><div style="margin-top:0px;margin-left:0px"><iframe name="ICPM" marginwidth="1" marginheight="1" width="468" scrolling="no" border="0" frameborder="0" height="60" src="http://bidvertiserbanner.blogspot.com/"></iframe></div></center>   </div>';  
    embed1='<embed name="flashplayer" src="'+_pl+'" FlashVars="plugins='+_pr+'&proxy.link=' + a + '&autostart=true&skin='+_sk+'"'+_em+'/>' + _bb + '';
    embed2='<iframe width="668" height="440" src="'+a+'&width=668&height=440&autoplay=no" frameborder="0" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="NO" allowfullscreen></iframe>';
    return obj=[embed1,embed2,embed2,embed1,embed1,embed1,embed1,embed1,embed1,embed1]
};
M = new ANCMedia();
M.Play();
M.Qstr();

function tapphim(){
    return name_eppart;
}
